Genie is a command shell program for the Mac. It's not just a hack, but a program in active (if somewhat occasional) development. See <http://www.metamage.com/proj/lamp/genie.html> for more information.
Documentation is included in the form of source code.